var verify_retail_tax = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_retail_tax"}');
if (!isNull(retail_tax)) {
    if (retail_tax <= 0) {
        verify_retail_tax.CODE = 2;
        verify_retail_tax.ACTION = 'risk';
        verify_retail_tax.MSG = '更新售价必须大于0';
    }
    // if (!isNull(vat_in_tax)) {
    //     var tax = vat_in_tax[0];
    //     var retailUnTax = preciseDivide(retail_tax, tax, 2);
    //     var retailTax = preciseMultiply(retailUnTax, tax, 2);
    //     if (retail_tax !== retailTax) {
    //         verify_retail_tax.CODE = 2;
    //         verify_retail_tax.ACTION = 'risk';
    //         verify_retail_tax.MSG = '待处理';
    //     }
    // }
} else {
    if (!isNull(retail_start_date)) {
        verify_retail_tax.CODE = 2;
        verify_retail_tax.ACTION = 'risk';
        verify_retail_tax.MSG = '更新售价为空，价格生效日期应为空';
    }
    if (!isNull(retail_end_date)) {
        verify_retail_tax.CODE = 2;
        verify_retail_tax.ACTION = 'risk';
        verify_retail_tax.MSG = '更新售价为空，价格结束日期应为空';
    }
}


JSON.stringify(verify_retail_tax);